package com.sas.until;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.sas.service.TTuihhmxService;

import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/*版本必须junit4.12往上，配置文件必须放在src目录下*/

@RunWith(SpringJUnit4ClassRunner.class)  //使用junit4进行测试   
@ContextConfiguration({"classpath:conf/applicationContext.xml","classpath:conf/springmvc.xml"})
public class Junit4 {

	@Autowired
	private TTuihhmxService ttuihhmxService; 

    @Test 
    public void te() throws Exception {
    	 System.out.println("北京欢迎你");
    	 int selectCount = ttuihhmxService.selectCount();  
          System.out.println("爱国"+selectCount);  
    }  
	  
   
     
       

}
